package com.study.talk.module.netty.message.response;

import com.study.talk.module.netty.message.MessageType;
import com.study.talk.module.netty.message.TalkMessage;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  添加好友消请求出后 发出请求的客户端的回响
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddUserSelfResponse extends TalkMessage {

    @ApiModelProperty("被邀请用户id")
    private Integer invitedUserId;

    @ApiModelProperty("不能邀请的原因")
    private String reason;

    @ApiModelProperty("邀请是否成功发出")
    private Boolean success;

    @Override
    public byte getType() {
        return MessageType.ADD_USER_SELF_RESPONSE;
    }
}
